home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1993 July / InfoMagic USENET CD-ROM July 1993.ISO / sources / x / volume2 / xhp / patch1 next >
Encoding:
Internet Message Format  |  1988-11-17  |  8.0 KB

  1. Path: uunet!wyse!mikew
  2. From: mikew@wyse.wyse.com (Mike Wexler)
  3. Newsgroups: comp.sources.x
  4. Subject: v02i015:  HP Widget Set, Patch1
  5. Message-ID: <1834@wyse.wyse.com>
  6. Date: 17 Nov 88 20:26:06 GMT
  7. Organization: Wyse Technology, San Jose
  8. Lines: 254
  9. Approved: mikew@wyse.com
  10.  
  11. Submitted-by: Mark Moraes <moraes%csri.toronto.edu@RELAY.CS.NET>
  12. Posting-number: Volume 2, Issue 15
  13. Archive-name: xhp/patch1
  14.  
  15. [This is an unofficial patch.  Also if you don't keep your X includes
  16. in /usr/include/X11, you will need to make some additional changes to
  17. the makefiles.]
  18.  
  19. These are a few small changes to the Makefiles/Imakefile for the R2
  20. Xt Intrinsics and Xw (HP widgets) distributed on the R3 contrib tape.
  21. With these, the two libraries compile and can be used by applications
  22. that are careful about including these includes before the standard R3
  23. includes.
  24.  
  25. The real fix is to port the HP widgets to R3 - I'm sure HP is doing that.
  26. (and after porting two widgets to R3, I'm fairly sure it'll take them a 
  27. while to get an R3 set out). Till that happens, hopefull these will
  28. suffice.
  29.  
  30. Please post them - the patches to xpic for R3 (which I'll be sending
  31. you later tonight, hopefully) will require these fixes.
  32.  
  33. Thanks,
  34.     Mark.
  35.  
  36. #! /bin/sh
  37. # This is a shell archive.  Remove anything before this line, then unpack
  38. # it by saving it into a file and typing "sh file".  To overwrite existing
  39. # If this archive is complete, you will see the following message at the end:
  40. #        "End of shell archive."
  41. #
  42. # Contents:
  43. #   CHANGES update.sh
  44. #
  45. # Wrapped by moraes@csri.toronto.edu on Thu Nov 17 02:47:31 1988
  46. #
  47. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  48. if test -f CHANGES -a "${1}" != "-c" ; then 
  49.   echo shar: Will not over-write existing file \"CHANGES\"
  50. else
  51. echo shar: Extracting \"CHANGES\" \(1052 characters\)
  52. sed "s/^X//" >CHANGES <<'END_OF_CHANGES'
  53. XThis patch makes the few changes needed to get the HP widgets compiled
  54. Xon a Sun. (There's nothing Sun specific in them - just that I've only
  55. Xtested them on a Sun.) Note that the Makefile diffs take out the HP
  56. Xdependent CFLAGS/LDFLAGS, so if you're on an HP workstation, you
  57. Xprobably don't want those specific changes.
  58. X
  59. XFix the script to set TOPDIR to wherever the top directory of the core
  60. XX11R3 distribution is.
  61. X
  62. XWhat it does:  
  63. X    moves the file Imakefile.or from Xt tto Imakefile in
  64. X    the same directory - for some reason, HP doesn't seem to use
  65. X    Imakefiles. (I wish they would use them - makes life easier when
  66. X    installing)
  67. X
  68. XThe changes are:
  69. X    minor changes to the makefiles
  70. X
  71. X    a fix to the -I options in the Imakefile for Xt and the Makefile
  72. X    for Xw to get them to use the Xhp/Xt includes in preference to the
  73. X    ones that you have presumably installed in /usr/include.
  74. X
  75. XWhen the patch is done,    it makes the Makefile and does a make depend in Xt.
  76. X
  77. XYou can then make it, which creates libXt.a and libXw.a in the lib
  78. Xsubdirectory, and makes all the tests.
  79. END_OF_CHANGES
  80. if test 1052 -ne `wc -c <CHANGES`; then
  81.     echo shar: \"CHANGES\" unpacked with wrong size!
  82. fi
  83. # end of overwriting check
  84. fi
  85. if test -f update.sh -a "${1}" != "-c" ; then 
  86.   echo shar: Will not over-write existing file \"update.sh\"
  87. else
  88. echo shar: Extracting \"update.sh\" \(4506 characters\)
  89. sed "s/^X//" >update.sh <<'END_OF_update.sh'
  90. X#! /bin/sh -x
  91. X# Edit this to change this to the top directory where your X11R3 source is
  92. X# something like /usr/src/local/X.V11R3
  93. XTOPDIR=please/change/this/to/the/real/X/top/level/directory
  94. Xif test ! \( -d $TOPDIR -a -d $TOPDIR/util -a -d $TOPDIR/util/scripts \) ; then
  95. X    echo 'Please fix TOPDIR and run this script again'
  96. X    exit 1
  97. Xelif test ! -x $TOPDIR/util/scripts/ximake.sh ; then
  98. X    echo Something wrong - $TOPDIR/util/scripts/ximake.sh isn\'t executable
  99. X    exit 1
  100. Xfi
  101. Xif test ! \( -d Xw -a -d Xt -a -d MButton \) ; then
  102. X    echo 'Please run this script in the Xhp directory'
  103. X    exit 1
  104. Xfi
  105. X# This is needed to provide the R2 Xt and Xw, and any
  106. X# applications using these, with the correct R2 Intrinsics include files
  107. Xln -s Xt X11
  108. X# I really wish HP would follow the Imakefile convention - it
  109. X# simplifies life a lot for anyone installing this stuff)
  110. X(cd Xt; mv Makefile Makefile.hp; mv Imakefile.or Imakefile)
  111. Xpatch -p1 << \WhAt_A_mArOoN
  112. XOnly in Xhp: X11
  113. Xdiff -c -r /h/xwindows/moraes/contrib/widgets/Xhp/Makefile Xhp/Makefile
  114. X*** /h/xwindows/moraes/contrib/widgets/Xhp/Makefile    Fri Sep 16 12:56:46 1988
  115. X--- Xhp/Makefile    Mon Nov 14 21:38:35 1988
  116. X***************
  117. X*** 5,10 ****
  118. X--- 5,11 ----
  119. X  
  120. X  Xtlib:
  121. X      cd Xt; make
  122. X+     mv Xt/libXt.a lib
  123. X  
  124. X  Xwlib:
  125. X      cd Xw; make
  126. X***************
  127. X*** 14,16 ****
  128. X--- 15,24 ----
  129. X  
  130. X  MButtonMake:
  131. X      cd MButton; make
  132. X+ 
  133. X+ clean:
  134. X+     cd Xt; make clean
  135. X+     cd Xw; make clobber
  136. X+     cd test; make clean
  137. X+     cd MButton;rm -f *.o multiTest
  138. X+ 
  139. Xdiff -c -r /h/xwindows/moraes/contrib/widgets/Xhp/MButton/Makefile Xhp/MButton/Makefile
  140. X*** /h/xwindows/moraes/contrib/widgets/Xhp/MButton/Makefile    Fri Sep 16 13:07:01 1988
  141. X--- Xhp/MButton/Makefile    Sat Nov 12 06:06:32 1988
  142. X***************
  143. X*** 2,9 ****
  144. X  OBJECTS = multiTest.o MButton.o
  145. X  LIBS =  ../lib/libXw.a ../lib/libXt.a -lX11
  146. X  # DEC and Sun
  147. X! #CFLAGS = -I../ -I./
  148. X! CFLAGS = -I../ -I./ -Wc,-Nd2000 -Wc,-Ns2000
  149. X  
  150. X  Test: $(OBJECTS)
  151. X      cc $(CFLAGS) -o multiTest $(OBJECTS) $(LIBS)
  152. X--- 2,9 ----
  153. X  OBJECTS = multiTest.o MButton.o
  154. X  LIBS =  ../lib/libXw.a ../lib/libXt.a -lX11
  155. X  # DEC and Sun
  156. X! CFLAGS = -I../ -I./
  157. X! #CFLAGS = -I../ -I./ -Wc,-Nd2000 -Wc,-Ns2000
  158. X  
  159. X  Test: $(OBJECTS)
  160. X      cc $(CFLAGS) -o multiTest $(OBJECTS) $(LIBS)
  161. Xdiff -c -r /h/xwindows/moraes/contrib/widgets/Xhp/Xw/Makefile Xhp/Xw/Makefile
  162. X*** /h/xwindows/moraes/contrib/widgets/Xhp/Xw/Makefile    Fri Sep 16 12:59:21 1988
  163. X--- Xhp/Xw/Makefile    Mon Nov 14 22:21:48 1988
  164. X***************
  165. X*** 17,25 ****
  166. X  
  167. X  INCRT = ../
  168. X  LIBNAME = ../lib/libXw.a
  169. X! CFLAGS = -O -DSYSV -Wc,-Nd4000 -Wc,-Ns4000 -I../
  170. X  # DEC and Sun
  171. X! #CFLAGS = -O -I../
  172. X  
  173. X  FILES =\
  174. X      Arrow.o\
  175. X--- 17,25 ----
  176. X  
  177. X  INCRT = ../
  178. X  LIBNAME = ../lib/libXw.a
  179. X! #CFLAGS = -O -DSYSV -Wc,-Nd4000 -Wc,-Ns4000 -I../
  180. X  # DEC and Sun
  181. X! CFLAGS = -O -I$(INCRT)
  182. X  
  183. X  FILES =\
  184. X      Arrow.o\
  185. X***************
  186. X*** 74,80 ****
  187. X      $(AS) -o $*.o $<
  188. X  
  189. X  .c.o:
  190. X!     $(CC) $(INCRT) -c $(CFLAGS) $<
  191. X  
  192. X  clean:
  193. X      -rm -f *.o
  194. X--- 74,80 ----
  195. X      $(AS) -o $*.o $<
  196. X  
  197. X  .c.o:
  198. X!     $(CC) -c $(CFLAGS) $<
  199. X  
  200. X  clean:
  201. X      -rm -f *.o
  202. Xdiff -c -r /h/xwindows/moraes/contrib/widgets/Xhp/test/Makefile Xhp/test/Makefile
  203. X*** /h/xwindows/moraes/contrib/widgets/Xhp/test/Makefile    Fri Sep 16 13:06:43 1988
  204. X--- Xhp/test/Makefile    Sat Nov 12 06:05:51 1988
  205. X***************
  206. X*** 2,10 ****
  207. X  
  208. X  OBJECTS = 
  209. X  LIBS =  ../lib/libXw.a ../lib/libXt.a -lX11
  210. X! CFLAGS = -O -I./ -I../ -Wc,-Nd4000 -Wc,-Ns4000 +Nt100000
  211. X  # DEC and Sun
  212. X! #CFLAGS = -O -I./ -I../
  213. X  
  214. X  .c:
  215. X      $(CC) $(CFLAGS) -o $@ $< $(LIBS)
  216. X--- 2,10 ----
  217. X  
  218. X  OBJECTS = 
  219. X  LIBS =  ../lib/libXw.a ../lib/libXt.a -lX11
  220. X! #CFLAGS = -O -I./ -I../ -Wc,-Nd4000 -Wc,-Ns4000 +Nt100000
  221. X  # DEC and Sun
  222. X! CFLAGS = -O -I./ -I../
  223. X  
  224. X  .c:
  225. X      $(CC) $(CFLAGS) -o $@ $< $(LIBS)
  226. X*** /h/xwindows/moraes/contrib/widgets/Xhp/Xt/Imakefile.or    Fri Sep 16 13:06:20 1988
  227. X--- Xhp/Xt/Imakefile    Mon Nov 14 21:40:18 1988
  228. X***************
  229. X*** 1,7 ****
  230. X      STD_DEFINES = LibraryDefines
  231. X      APP_DEFINES = -DXAPPLOADDIR=\"$(XAPPLOADDIR)$(PATHSEP)\"
  232. X      CDEBUGFLAGS = LibraryCDebugFlags
  233. X!        INCLUDES = -I. -I$(XLIBSRC) -I$(TOP) -I$(TOP)/X11
  234. X     INSTALLFLAGS = $(INSTINCFLAGS)
  235. X         LINTLIBS = $(LINTXLIB)
  236. X  
  237. X--- 1,7 ----
  238. X      STD_DEFINES = LibraryDefines
  239. X      APP_DEFINES = -DXAPPLOADDIR=\"$(XAPPLOADDIR)$(PATHSEP)\"
  240. X      CDEBUGFLAGS = LibraryCDebugFlags
  241. X!        INCLUDES = -I.. -I. -I$(XLIBSRC)
  242. X     INSTALLFLAGS = $(INSTINCFLAGS)
  243. X         LINTLIBS = $(LINTXLIB)
  244. XWhAt_A_mArOoN
  245. X(cd Xt;     
  246. X    case $TOPDIR in
  247. X        /*);;
  248. X        *)TOPDIR=../$TOPDIR;;
  249. X    esac
  250. X    $TOPDIR/util/scripts/ximake.sh $TOPDIR; make depend)
  251. Xecho 'Go ahead and make the stuff'
  252. X
  253. END_OF_update.sh
  254. if test 4506 -ne `wc -c <update.sh`; then
  255.     echo shar: \"update.sh\" unpacked with wrong size!
  256. fi
  257. chmod +x update.sh
  258. # end of overwriting check
  259. fi
  260. echo shar: End of shell archive.
  261. exit 0
  262. -- 
  263. Mike Wexler(wyse!mikew)    Phone: (408)433-1000 x1330
  264. Moderator of comp.sources.x
  265.